package com.yasaka.stock.feign;

import com.yasaka.stock.hrstrix.HystrixFeignFallback;
import com.yasaka.stock.model.TWebResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="mlp",fallback=HystrixFeignFallback.class,url = "http://mlp.iol8.com/api")
public interface MlpFeignClient {

	@RequestMapping(value = "/getOnLineCountWord", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, method = RequestMethod.POST)
	TWebResult getOnLineCountWord(@RequestParam("aText") String aText);

//	@RequestMapping(value = "/uploadFile", method = RequestMethod.POST, consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
//	public String uploadFile(
//			@RequestParam(value = "aAPiId") String aAPiId,
//			@RequestPart(value = "file") MultipartFile aFileStream,
//			@RequestParam(value = "aLang") String aLang);

}